//
//  MapCollectionViewCell.m
//  Comic
//
//  Created by Ryan on 16/3/19.
//  Copyright © 2016年 程锦. All rights reserved.
//

#import "MapCollectionViewCell.h"

@implementation MapCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{

    self.type_ImageView = [UIImageView new];
    
    [self.contentView addSubview:self.type_ImageView];
    
    self.type_ImageView.layer.cornerRadius = 4;
    
    self.mask_View = [UIView new];
    
    [self.contentView addSubview:self.mask_View];

    self.mask_View.layer.cornerRadius = 4;

    self.type_Label = [UILabel new];
    
    
    self.type_Label.textColor = [UIColor whiteColor];
    
    self.type_Label.textAlignment = NSTextAlignmentCenter;
    
    
    [self.mask_View addSubview:self.type_Label];
    
    
    
    [self.type_ImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.mas_equalTo(0);
        
    }];

    [self.mask_View mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.right.bottom.mas_equalTo(0);
        
        make.top.mas_equalTo(self.contentView.mas_bottom).offset(-self.contentView.bounds.size.height/3.5);
    }];
    
    [self.type_Label mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.edges.mas_equalTo(0);
        
        
    }];
    

}


@end
